home *** CD-ROM | disk | FTP | other *** search
- Subject: Get the category?
- Sent: 8/15/96 10:54 AM
- Received: 8/15/96 11:01 AM
- From: Henri Lamiraux, lamiraux@apple.com
- Reply-To: ODF Interest, ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- I am reposting this message
-
- ---------------------------------------------------------------------------
- ----
-
-
- In CMyFrame::CanAccept Drop I want to find the category of the part about
- to
- be dropped, and want to compare this category with a prestored category.
- How
- should I do this? I have tried to access the storage unit through the
- dragInfo parameter like this:
-
- ODStorageUnit* dragSU;
- ODValueType partCategory = kODNULL;
-
- for (dragSU = dragInfo->First(ev); dragSU; dragSU =
- dragInfo->Next(ev))
- {
- if(dragSU->Exists(ev, kODPropContents, partCategory, 0))
- {
- dragSU->Focus(ev, kODPropContents,
- kODPosUndefined,
- kODNULL, 0, ODPosUndefined);
- partCategory = dragSU->GetType(ev);
- }
- }
-
- But this does not work
-
- Steinar Tyvand
- --------------------------------------------------------------
- Steinar Tyvand e-mail: Steinar.Tyvand@unimed.sintef.no
- SINTEF Unimed Rehab Phone: +47 22 06 78 29 (work)
- Box 124 Blindern Fax: +47 22 06 79 09 (work)
- N-0314 Oslo Phone: +47 67 56 17 79 (home)
- Norway Fax: +47 67 56 05 36 (home)
- --------------------------------------------------------------
-
-
-
- ........................................................................
- Henri Lamiraux lamiraux@apple.com
- Apple Computer, Inc. OpenDoc(tm) Development Framework
- ........................................................................
-
-
-